<template>
  <div class="app-container">
    <!-- 统计模块 -->
    <el-table ref="table" :data="crud.data" size="small">
      <el-table-column type="index" width="150rpx" label="编号" />
      <el-table-column prop="name" label="客户名称" />
      <el-table-column prop="chjlNname" label="客户经理" />
      <el-table-column prop="lstReason" label="流失原因" />
      <el-table-column type="date" prop="date" label="流失时间" />
    </el-table>
  </div>
</template>

<script>
import CRUD, { presenter, header, form, crud } from '@crud/crud'
const defaultForm = { date: null, name: null, chjNmam: null, lstReason: null }
export default {
  name: 'Statistics4',
  components: { },
  mixins: [presenter(), header(), form(defaultForm), crud()],

  cruds() {
    return CRUD({ title: '客户流失分析', url: '/api/cstCustomer/liushifenxi', idField: 'name', sort: 'date,desc' })
  },
  data() {
    return {
    }
  },
  methods: {
    // 钩子：在获取表格数据之前执行，false 则代表不获取数据
    [CRUD.HOOK.beforeRefresh]() {
      return true
    }
  }
}
</script>

<style scoped>
</style>
